<template>
  <div class="run">
    <!-- content部分 -->
    <ChaXun />
    <!-- 资讯列表 -->
    <div class="zixun_list">
      <div class="addzixun">
        <span class="zixun_text">资讯列表</span>
        <span class="add">
          <el-button type="primary" :icon="Plus">添加资讯</el-button>
        </span>
      </div>
      <div class="list">
        <div class="list_content">
          <div class="imgbox">
            <img
              src="https://img1.baidu.com/it/u=1966616150,2146512490&fm=253&fmt=auto&app=138&f=JPEG?w=751&h=500"
              alt
            />
          </div>
          <div class="text">
            <div class="title">破解跑步迷思</div>
            <div class="yuedu">
              <span>
                阅读
                <i>3000</i>
              </span>
              <span>评论</span>
              <span>98</span>
              <span>
                转发
                <i>128</i>
              </span>
            </div>
            <div class="button">
              <span class="zhiding">
                <el-button type="danger">置顶</el-button>
              </span>
              <span class="zhuangtai">
                <el-button>已发布</el-button>
              </span>
            </div>
            <div class="edit">
              <img
                src="https://img1.baidu.com/it/u=649990739,2636286396&fm=253&fmt=auto&app=138&f=PNG?w=350&h=350"
                alt
              />
              <span>作者</span>
              <span class="quxiao">取消置顶</span>
              <span>编辑</span>
              <span>下架</span>
              <span class="delete">删除</span>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script setup>
import ChaXun from "@/components/zhangwei/ChaXun.vue";

import { Plus } from "@element-plus/icons-vue";
</script>

<style lang="scss" scoped>
.run {
  margin-left: 150px;
  margin-top: 30px;
  .zixun_list {
    .addzixun {
      padding: 10px;
      .zixun_text {
        font-family: "Arial Negreta", "Arial Normal", "Arial";
        font-weight: 700;
        font-style: normal;
        font-size: 16px;
      }
      .add {
        margin-left: 20px;
      }
    }
    .list {
      margin-top: 20px;
      width: 100%;
      .list_content {
        width: 100%;
        padding-left: 40px;
        border-bottom: 1px solid #ccc;
        display: flex;
        padding-bottom: 20px;
        .imgbox {
          width: 200px;
          img {
            width: 100%;
            height: 150px;
          }
        }
        .text {
          margin-left: 20px;
          font-weight: 400;
          font-style: normal;
          font-size: 16px;
          .yuedu {
            color: #999;
            margin: 15px 15px 15px 0;
            span {
              margin-right: 10px;
              font-size: 14px;
            }
          }
          .button {
            span {
              margin-right: 20px;
            }
          }
          .edit {
            margin-top: 10px;
            img {
              width: 30px;
              vertical-align: middle;
            }
            span {
              margin-right: 20px;
            }
            .quxiao {
              margin-left: 400px;
            }
            .delete {
              color: #f00;
            }
          }
        }
      }
    }
  }
}
</style>